﻿    <Page
    x:Class="MusicExplorer.Views.TracksPageView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:caliburn="using:Caliburn.Micro"
    xmlns:common="using:MusicExplorer.Common">
        
    <Grid Background="{StaticResource DefaultApplicationBackground}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid x:Name="progressGrid" VerticalAlignment="Top">
            <ProgressBar IsIndeterminate="True" Height="10" />
        </Grid>
        
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="GoBack" Style="{StaticResource DefaultBackButtonStyle}" />
            <TextBlock x:Name="CompleteTitle" Style="{StaticResource SubPageHeaderTextStyle}" Grid.Column="1" />
        </Grid>

        <common:SelectListView x:Name="Tracks" SelectionMode="Single" Margin="0" IsSwipeEnabled="False"
                  ItemContainerStyle="{StaticResource ListViewTrackStyle}" CanDragItems="False" CanReorderItems="False"
                  IsItemClickEnabled="False" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                  ScrollViewer.VerticalScrollBarVisibility="Auto" HorizontalContentAlignment="Stretch"
                  caliburn:Message.Attach="[Event SelectionChanged] = [OpenMedia($eventArgs)]" />
        
        <!--<GridView x:Name="Tracks" SelectionMode="Single" Margin="0"
                  IsItemClickEnabled="False" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Disabled"
                  caliburn:Message.Attach="[Event SelectionChanged] = [OpenMedia($eventArgs)]"
                  ItemContainerStyle="{StaticResource GridViewItemTrackStyle}">
            <GridView.ItemsPanel>
                <ItemsPanelTemplate>
                    <ItemsWrapGrid Margin="120, 0, 0, 0" />
                </ItemsPanelTemplate>
            </GridView.ItemsPanel>
        </GridView>-->
    </Grid>
</Page>
